-- GENERATED SPELL FOR [Hive'Regal Slavemaker] --


function spell0_11733(pUnit, Event) --@Poison Mind,n/a--
pUnit:FullCastSpellOnTarget(19469,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11733', 15000, 1)
end

function spell1_11733(pUnit, Event) --@Volatile Infection,n/a--
pUnit:FullCastSpellOnTarget(3584,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11733', 2000, 1)
end

function Sorts_11733(pUnit, Event)
local choix_sorts_11733 = math.random(0, 1)
if choix_sorts_11733 == 0 then
pUnit:RegisterEvent('spell0_11733', 1, 1)
end
if choix_sorts_11733 == 1 then
pUnit:RegisterEvent('spell1_11733', 1, 1)
end
end

function mob11733_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11733', math.random(1500, 3000), 1)
end

function mob11733_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11733_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11733_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11733, 1, 'mob11733_Action')
RegisterUnitEvent(11733, 2, 'mob11733_Leave')
RegisterUnitEvent(11733, 3, 'mob11733_Kill')
RegisterUnitEvent(11733, 4, 'mob11733_Die')
